/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
export default {
  dev: {
    '/fbms_server': {
      target: 'http://10.192.107.39:8020/management-system/',
      changeOrigin: true,
      pathRewrite: {
        '^/fbms_server': '',
      },
    },
    '/files_server': {
      target: 'http://192.168.23.41:18944/',
      changeOrigin: true,
      pathRewrite: {
        '^/files_server': '',
      },
    },
    '/attachment_server': {
      target: 'http://123.138.37.38:9090/attachment_server/',
      changeOrigin: true,
      pathRewrite: {
        '^/attachment_server': '',
      },
    },
  },
  test: {
    '/fawu-server': {
      target: 'http://10.92.119.138:11111/lgbsmp/api/v1',
      changeOrigin: true,
      pathRewrite: {
        '^/fawu-server': '',
      },
    },
  },

  pre: {
    '/api/': {
      target: 'your pre url',
      changeOrigin: true,
      pathRewrite: { '^': '' },
    },
  },
};
